PListQuery

PListQuery is a base class for any queries that return a list of items. It extends the PHandleQuery class to add a PListMom object for managing a list.


constructor

PListQuery()
The default constructor does nothing. If a subclass uses this constructor, it MUST call InitHandle() and InitListMom() in its constructor.
PListQuery(ePMQuery query);
This constructor is normally used to execute a query.

Member functions

short Count() const;
This function simply returns PListMom::Count().
void Reset() { listMom.Reset(); Scan(); }
Reset the PListMom object, and rescan the first member of the list.
void operator++(int) { Scan(); }
This is the way clients of the list query objects can iterate through the list.
virtual void Scan() = 0;
This pure virtual function must be implemented by every subclass. The Scan function is used to read the fields of the current record, typically copying them into member fields of the high level object.
void InitListMom();
This function provides the default behavior. If a query has any fixed fields before the list begins, it must override this function, or otherwise set the list mom correctly before use.

Member fields

PListMom listMom;
The PListMom object keeps track of the list of items contained in the handle.


Copyright © 1996, Adobe Systems Incorporated. All rights reserved.

Comments or suggestions? Contact Adobe Developer Support